.side-menu-container {
  // 内联的样式postcss-pxtorem插件转义不了需要在style重定义
  &.ant-menu-root.ant-menu-inline {
    width: 250px;
    height: 100%;
    // 解决alayoutsider可能会覆盖alayoutcontent的情况
    z-index: 1;
    position: relative;
  }
  // 父菜单
  &.ant-menu-inline.ant-menu-root .ant-menu-item,
  &.ant-menu-inline.ant-menu-root .ant-menu-submenu-title {
    padding-left: 25px !important;
  }
  // 子菜单
  &.ant-menu-inline.ant-menu-root .ant-menu-sub .ant-menu-item {
    padding-left: 48px !important;
  }
  .ant-menu-sub.ant-menu-inline {
    background-color: @color-sidemenu-item-bg !important;
  }
  .icon {
    margin-right: 8px;
    font-size: @font-size-medium-x;
  }
  .menuname {
    display: inline-block;
  }
}

.ant-layout-sider-collapsed {
  .side-menu-container {
    .ant-menu-item {
      position: relative;
    }
    .icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      height: 36px;
      font-size: @font-size-medium-x;
    }
    .menuname {
      display: none;
    }
  }
}